/** Header file for planet destruction
*	Created 17.9.2009 by Raymond; common.h massacre
*	*/
#ifndef VIEW_H
#define VIEW_H

#include "port.h"
#include "databank.h"

class GameModule;

/** Handles the display part of the program, preferably also later sound */
class ViewModule {
	DataBank* data;
	Config *cfg;
	
	/** Structure containing data required for gui-handeling 
	*	TODO: Fill this with what is needed/wanted */
	struct GuiData {
		double shootAngle;
		int weaponNumber;
	} gui;
	
	BITMAP *buf;
	BITMAP *plTmp;
public:
	ViewModule(DataBank* d) { data = d; }
	/** Paints the screen */
	void paint(GameModule *game);
	/** Update anything needed due to a given player action */
	//void doAction(Player* player, Action* action); // Ignore for now
	
	BITMAP *getBuffer() { return buf; }
	
	void setup();
};


#endif

